Skip to contentSkip to conversation

errors building - redefinitions in pci.h

DISCUSSION James Harper 3 participants 5 messages Aug 3, 2009

lore
Share & tools
lore
#0 lore raw

I am just building a new Debian Lenny install and trying to 'make tools' on xen-3.4-testing.hg (no more than an hour or so old) and I get this:

CC i386-dm/pt-msi.o
In file included from /usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pass-through.h:22,
from
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.h:5,
from
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.c:22:
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pci.h:171:1:
warning: "PCI_STATUS_66MHZ" redefined
In file included from /usr/include/pci/pci.h:13,
from
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.h:4,
from
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.c:22:
/usr/include/pci/header.h:31:1: warning: this is the location of the previous definition
In file included from /usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pass-through.h:22,
from
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.h:5,
from
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.c:22:
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pci.h:173:1:
warning: "PCI_STATUS_FAST_BACK" redefined
In file included from /usr/include/pci/pci.h:13,
from
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.h:4,
from
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.c:22:
/usr/include/pci/header.h:33:1: warning: this is the location of the previous definition

Any suggestions?

Thanks

James

#1 lore raw

Hello-
I am working on a project to modify Xen to precisely control the execution times of the individual guest domains, and I need some help. I considered modifying the XM python program, but it is not precise or fast enough for my application.

I want to be able to pass short, simple message quickly between an application-level process and the Xen kernel asynchonously. I found an IPC mechanism designed for the method called netlink (
http://www.linuxjournal.com/article/7356), but I am not sure how to incorporate it into the Xen kernel. When I attempt to recompile the kernel with netlink, I get errors that seem to stem from type issues I am not familiar with.

2 questions:
Is it possible to use a mechanism such as netlink with Xen? If so, how? Is there other functionality within Xen that could be used with minimal modification to do IPC within domain0?

Any help/advice would be greatly appreciated. Thanks! --Derek

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

Hey! Don't hijack my thread - start your own!!!
(you appear to have replied to a message I posted, leaving the subject as it was which is totally irrelevant to the questions you are asking.)

James

Quoted 3 lines

Hello-
I am working on a project to modify Xen to precisely control the

execution

Quoted 1 line

times of the individual guest domains, and I need some help. I

considered

Quoted 1 line

modifying the XM python program, but it is not precise or fast enough

for my

Quoted 4 lines

application.

I want to be able to pass short, simple message quickly between an application-level process and the Xen kernel asynchonously. I found

an IPC

Quoted 3 lines

mechanism designed for the method called netlink
(http://www.linuxjournal.com/article/7356), but I am not sure how to incorporate it into the Xen kernel. When I attempt to recompile the

kernel

Quoted 5 lines

with netlink, I get errors that seem to stem from type issues I am not familiar with.

2 questions:
Is it possible to use a mechanism such as netlink with Xen? If so,

how?

Quoted 1 line

Is there other functionality within Xen that could be used with

minimal

Quoted 4 lines

modification to do IPC within domain0?

Any help/advice would be greatly appreciated. Thanks! --Derek

#3 lore raw
In reply to James Harper

It's just warnings, i don't think it will fail the build...

Quoted 47 lines · James Harper

I am just building a new Debian Lenny install and trying to 'make tools' on xen-3.4-testing.hg (no more than an hour or so old) and I get this:

 CC    i386-dm/pt-msi.o
In file included from /usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pass-through.h:22, from /usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.h:5, from /usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.c:22:
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pci.h:171:1:
warning: "PCI_STATUS_66MHZ" redefined
In file included from /usr/include/pci/pci.h:13,
                from /usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.h:4, from /usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.c:22:
/usr/include/pci/header.h:31:1: warning: this is the location of the previous definition
In file included from /usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pass-through.h:22, from /usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.h:5, from /usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.c:22:
/usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pci.h:173:1:
warning: "PCI_STATUS_FAST_BACK" redefined
In file included from /usr/include/pci/pci.h:13,
                from /usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.h:4, from /usr/local/src/xen-3.4-testing.hg/tools/ioemu-dir/hw/pt-msi.c:22:
/usr/include/pci/header.h:33:1: warning: this is the location of the previous definition

Any suggestions?

Thanks

James

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#4 lore raw
Quoted 3 lines

It's just warnings, i don't think it will fail the build...

Oops. So it is. I am getting build failures but the redifinitions are nothing to do with it (funny how everything seems so much clearer after a good nights sleep :)

James